package cn.edu.sgu.www.mhxysy.entity.jingmai;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 星辰晶石
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("star_stone")
public class StarStone implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 晶石品质
     */
    @ApiModelProperty(value = "晶石品质")
    private Integer quality;

    /**
     * 物品状态
     */
    @ApiModelProperty(value = "物品状态")
    private Integer state;

    /**
     * 镶嵌状态
     * 0-未镶嵌；1-已镶嵌
     */
    @ApiModelProperty(value = "镶嵌状态")
    private Integer inlayStatus;

    /**
     * 冻结天数
     */
    @ApiModelProperty(value = "冻结天数")
    private Integer days;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private String roleId;

    /**
     * 星辰晶石类型ID
     */
    @ApiModelProperty(value = "星辰晶石类型ID")
    private Integer categoryId;

    public String uuid() {
        return IdentifierPrefixes.PREFIX_STAR_STONE + StringUtils.uuid();
    }

}